<?php /* Smarty version Smarty 3.1.4, created on 2012-05-04 13:44:41
         compiled from ".\templates\product\editproduct.tpl" */ ?>
<?php /*%%SmartyHeaderCode:230354fa3dac1d1f1f6-62585339%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e4497b53371047f91181c2fc1f759368ccd8c9d6' => 
    array (
      0 => '.\\templates\\product\\editproduct.tpl',
      1 => 1336139061,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '230354fa3dac1d1f1f6-62585339',
  'function' => 
  array (
  ),
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4fa3dac1df29d',
  'variables' => 
  array (
    'title' => 0,
    'product_arr' => 0,
    'productid' => 0,
    'objeditorFCK' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fa3dac1df29d')) {function content_4fa3dac1df29d($_smarty_tpl) {?><div id="page-heading">
	<h1><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</h1>
        <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['name'] = 'sec3';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['product_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec3']['total']);
?>
        <h2><?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec3']['index']]['title'];?>
</h2>
         <h3><?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec3']['index']]['add_id'];?>
</h3>
         <br>
         <a onclick="loadPage('product/index')" href="javascript: void(0);">Back to product list</a>
          &nbsp;
           <a onclick="loadPage('product/addproduct/101000100001');" href="javascript: void(0);">Add new product</a>
          &nbsp;
         <a onclick="loadPage('product/editproduct/<?php echo $_smarty_tpl->tpl_vars['productid']->value;?>
');" href="javascript: void(0);">Back to prodcuct details</a>
          &nbsp;
         <a onclick="loadPage('product/addimage/<?php echo $_smarty_tpl->tpl_vars['productid']->value;?>
');" href="javascript: void(0);">Add product image</a>
          &nbsp;
         <a onclick="loadPage('product/addfeatures/<?php echo $_smarty_tpl->tpl_vars['productid']->value;?>
');" href="javascript: void(0);">Add product Features</a>

            <?php endfor; endif; ?>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['product_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
<table border="0" width="80%" cellpadding="0" cellspacing="0" id="product-table">
	<tr>
		<th colspan="2" align="left" class="table-header-repeat line-left">&nbsp;</th>
	</tr>
	<tr>
		<td width="20%">Product Title</td>
		<td width="60%"><input type="text" name="product_title" id="product_title" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['title'];?>
" class="inp-form" style="width: 500px;" /></td>
	</tr>
        <tr>
		<td width="20%">Product Item Code</td>
		<td width="60%"><input onblur="checkitemcodeupdate(this.value,'<?php echo $_smarty_tpl->tpl_vars['productid']->value;?>
')" type="text" name="item_code" id="item_code" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['add_id'];?>
" class="inp-form" style="width: 500px;" />
                <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['item_code'];?>
" name="hdnitemcode"  id="hdnitemcode"/>
                </td>
	</tr>
	<tr>
		<td>Product Description (short)</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_en",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['shortdsc']),"98%",200);?>
</td>
	</tr>
	<tr>
		<td>Product Description (detail)</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_detail",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['detaildsc']),"98%",200);?>
</td>
	</tr>
	
	<tr>
		<td width="20%">Product Price</td>
		<td width="60%"><input type="text" name="product_price_lkr" id="product_price_lkr" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['addamount'];?>
" class="inp-form" style="width: 100px;" /></td>
	</tr>
         <tr>
		
		
		<td>Category</td>
		
		</select>
		</td>
	</tr>
	<tr>
		<td>Sub Category</td>
		
			</div></td>
	</tr>
	<!--<tr>
		<td>New Arrival</td>
		<td>
			<input type="checkbox" name="newarrival" id="newarrival" value="1" />&nbsp;<span class="small_text2">(set this item as new arrival)</span>
		</td>
	</tr>	-->
	<tr>
		<td>Status</td>
		<td><select name="cmbStatus" id="cmbStatus">
		<option value="">Select Status</option>		
		<option value="1" <?php if ($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['status']==1){?> <?php echo "selected='selected'";?>
 <?php }?>>Show</option>
		<option value="0" <?php if ($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['status']==0){?> <?php echo "selected='selected'";?>
 <?php }?>>Hide</option>		
		</select>
		</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	<td><div class="edit-icoset"><a href="javascript: void(0);" onclick="updateProduct();"><img src="images/icons/save-2.gif" />Update</a>
	<input type="hidden" name="productid" id="productid" value="<?php echo $_smarty_tpl->tpl_vars['productid']->value;?>
" /></td>
	</tr>
</table>
<?php endfor; endif; ?><?php }} ?>